<extend name="Public/layout"/>

<block name="header">
    <li class="active"><a href="javascript:;">安装协议</a></li>
    <li class="active"><a href="javascript:;">环境检测</a></li>
    <li><a href="javascript:;">参数设置</a></li>
    <li><a href="javascript:;">开始安装</a></li>
    <li><a href="javascript:;">完成安装</a></li>
</block>

<block name="body">
    <div class="article">
        <header>
            <h1 class="text-center">环境检测</h1>
            <section class="abstract">版权所有 (c) 2014－<php>echo date("Y",time());</php>{:C('INSTALL_COMPANY_NAME')}保留所有权利。</section>
        </header>
        <section class="article-content">
            <table class="table table-hover">
                <caption><h2>运行环境检查</h2></caption>
                <thead>
                    <tr>
                        <th>项目</th>
                        <th>所需配置</th>
                        <th>当前配置</th>
                    </tr>
                </thead>
                <tbody>
                    <volist name="env" id="item">
                        <tr>
                            <td>{$item[0]}</td>
                            <td>{$item[1]}</td>
                            <td><i class="icon-{$item[4]}">&nbsp;</i>{$item[3]}</td>
                        </tr>
                    </volist>
                </tbody>
            </table>
            <present name="dirfile">
                <table class="table table-hover">
                    <caption><h2>目录、文件权限检查</h2></caption>
                    <thead>
                        <tr>
                            <th>目录/文件</th>
                            <th>所需状态</th>
                            <th>当前状态</th>
                        </tr>
                    </thead>
                    <tbody>
                        <volist name="dirfile" id="item">
                            <tr>
                                <td>{$item[3]}</td>
                                <td><i class="icon-ok">&nbsp;</i>可写</td>
                                <td><i class="icon-{$item[2]}">&nbsp;</i>{$item[1]}</td>
                            </tr>
                        </volist>
                    </tbody>
                </table>
            </present>
            <table class="table table-hover">
                <caption><h2>函数依赖性检查</h2></caption>
                <thead>
                    <tr>
                        <th>函数名称</th>
                        <th>检查结果</th>
                    </tr>
                </thead>
                <tbody>
                    <volist name="func" id="item">
                        <tr>
                            <td>{$item[0]}()</td>
                            <td><i class="icon-{$item[2]}">&nbsp;</i>{$item[1]}</td>
                        </tr>
                    </volist>
                </tbody>
            </table>
        </section>
        <div>
            <a class="btn btn-primary btn-block ajax-get" href="{:U('Install/step1')}">下一步</a>
            <a class="btn btn-block" href="{:U('Index/index')}">上一步</a>
        </div>
    </div>    
</block>
